package ewa.big.entities;

import at.ac.big.tuwien.ewa.picasa.Avatar;
import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.NoneScoped;

/**
 * <b>Web Engineering - UE3</b>
 * <p>
 *
 * This class represents player bean of the "Mensch aergere Dich nicht" game.
 * 
 * @version 1.00 (01.05.2012)
 *  
 */
@ManagedBean(name = "player")
@NoneScoped
public class Player implements Serializable {
    private static final long serialVersionUID = 1L;

    private String firstname = null;
    private String lastname = null;
    private String username = null;
    private String password = null;
    private String birthday = null;
    private String sex = null;
    private String avatarURL = null;
    
    /** C'tor  creates a new instance of Player */
    public Player() {
    } // end C'tor

    /**
     * Get the username.
     * 
     * @return the username
     */
    public String getUsername() {
        return username;
    } // end getUsername

    /**
     * Set the username.
     * 
     * @param username    the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    } // end setUsername

    /**
     * Get the password.
     * 
     * @return the password
     */
    public String getPassword() {
        return password;
    } // end getPassword

    /**
     * Set the password.
     * 
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    } // end setPassword

    /**
     * Get the firstname.
     * 
     * @return the firstname
     */
    public String getFirstname() {
        return firstname;
    } // end getFirstname

    /**
     * Set the firstname.
     * 
     * @param firstname the firstname to set
     */
    public void setFirstname(String firstname) {
        this.firstname = firstname;
    } // end setFirstname

    /**
     * Get the lastname.
     * 
     * @return the lastname
     */
    public String getLastname() {
        return lastname;
    } // end getLastname

    /**
     * Set the lastname.
     * 
     * @param lastname the lastname to set
     */
    public void setLastname(String lastname) {
        this.lastname = lastname;
    } // end setLastname

    /**
     * Get the birthday.
     * 
     * @return the birthday
     */
    public String getBirthday() {
        return birthday;
    } // end getBirthday

    /**
     * Set the birthday.
     * 
     * @param birthday the birthday to set
     */
    public void setBirthday(String birthday) {
        this.birthday = birthday;
    } // end setBirthday

    /**
     * Get the sex.
     * 
     * @return the sex
     */
    public String getSex() {
        return sex;
    } // end getSex

    /**
     * Set the sex.
     * 
     * @param sex the sex to set
     */
    public void setSex(String sex) {
        this.sex = sex;
    } // end setSex

    public String getAvatarURL() {
        return avatarURL;
    }

    public void setAvatarURL(String avatarURL) {
        this.avatarURL = avatarURL;
    }
    
    
} // end of class Player

